body.upcoming-trials-page {
  background: #1f1f1f;
  overflow-x: hidden;
}


/* ============================================
   Upcoming Trials
   ============================================ */
.upcoming-trials {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 78px 70px;
  background: #1f1f1f;
  color: #ffffff;
  overflow: hidden;
}

.upcoming-trials-frame {
  display: block;
  width: 100%;
  height: 590px;
  border: 0;
  background: #1f1f1f;
}

.registration-frame {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
  background: #1f1f1f;
}

.footer-frame {
  display: block;
  width: 100%;
  height: 500px;
  border: 0;
  background: #1f1f1f;
}

@media (max-width: 900px) {
  .upcoming-trials-frame {
    height: 900px;
  }

  .footer-frame {
    height: 500px;
  }
}

@media (max-width: 480px) {
  .upcoming-trials-frame {
    height: 840px;
  }

  .footer-frame {
    height: 560px;
  }
}

.upcoming-trials::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(208, 162, 74, 0.18), transparent 34%),
    radial-gradient(circle at 85% 12%, rgba(208, 162, 74, 0.16), transparent 28%);
  pointer-events: none;
}

.upcoming-trials .section-title,
.trial-list {
  position: relative;
  z-index: 1;
  max-width: 1640px;
  margin-left: auto;
  margin-right: auto;
}

.upcoming-trials .section-title h1 {
  color: #ffffff;
  font-family: Impact, "Arial Black", "Roboto Condensed", sans-serif;
  font-size: 48px;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(190, 138, 45, 0.36);
}

.upcoming-trials .section-title a {
  color: #d0a24a;
}

.trial-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.trial-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 270px;
  padding: 28px;
  border: 1px solid rgba(208, 162, 74, 0.24);
  border-radius: 8px;
  background: linear-gradient(145deg, #020b0f, #171717 58%, #211a10);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.trial-item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: #d0a24a;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s ease;
}

.trial-item:hover {
  transform: translateY(-6px);
  border-color: rgba(208, 162, 74, 0.78);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.36);
}

.trial-item:hover::before {
  transform: scaleY(1);
}

.trial-date {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 32px;
  background: #d0a24a;
  color: #020b0f;
  box-shadow: 8px 8px 0 rgba(255, 255, 255, 0.08);
}

.trial-date span {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.trial-date small {
  color: #020b0f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.trial-item h2 {
  color: #ffffff;
  font-size: 28px;
  line-height: 1.1;
}

.trial-item p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 600;
}

.trial-action {
  margin-top: auto;
  padding: 9px 12px;
  border: 1px solid rgba(208, 162, 74, 0.5);
  background: transparent;
  color: #d0a24a;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.trial-action:hover,
.trial-action:focus-visible {
  background: #d0a24a;
  color: #020b0f;
  transform: translateY(-2px);
  outline: none;
}

.trial-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 90;
  width: min(420px, calc(100vw - 36px));
  padding: 22px;
  border: 1px solid rgba(208, 162, 74, 0.68);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(2, 11, 15, 0.96), rgba(27, 24, 18, 0.94));
  color: #ffffff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  opacity: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.trial-popup[hidden] {
  display: block;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 18px));
  pointer-events: none;
}

.trial-popup__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.trial-popup__top .eyebrow {
  margin-bottom: 8px;
}

.trial-popup h2 {
  color: #ffffff;
  font-family: Impact, "Arial Black", "Roboto Condensed", sans-serif;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(190, 138, 45, 0.36);
}

.trial-popup__close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.trial-popup__close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.trial-popup__close:hover,
.trial-popup__close:focus-visible {
  border-color: #d0a24a;
  color: #d0a24a;
  transform: translateY(-2px);
  outline: none;
}

.trial-popup__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  border-left: 4px solid #d0a24a;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 800;
}

.trial-popup__events {
  display: grid;
  gap: 10px;
  list-style: none;
}

.trial-popup__events li {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: start;
  padding: 11px 0;
  border-top: 1px solid rgba(208, 162, 74, 0.22);
}

.trial-popup__events li.is-related {
  margin: 4px 0;
  padding: 13px;
  border: 1px solid rgba(208, 162, 74, 0.62);
  border-radius: 8px;
  background: rgba(208, 162, 74, 0.14);
}

.trial-popup__events time {
  color: #d0a24a;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.trial-popup__events strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.25;
  text-transform: uppercase;
}

.trial-popup__events span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 600;
}

